﻿using System;
using System.Reflection;

namespace XmlPreprocessAsAdmin
{
    class Program
    {
        static int Main(string[] args)
        {
            Assembly assembly = Assembly.LoadFrom("XmlPreprocess.exe");
            Type type = assembly.GetType("XmlPreprocess.XmlPreprocessorMain");
            MethodInfo methInfo = type.GetMethod("Main", new Type[] { typeof(string[]) });
            return (int)methInfo.Invoke(null, new object[] { args });
        }
    }
}
